import pageind from "./pages";
import router from "./index";
const dynameAddRouter = ()=>{
    pageind.forEach(item=>{
        router.addRoute('index',item)
    })
    // 不匹配的路由放到后面
    router.addRoute({
        path:'/:path(.*)+',
        redirect:"/404"
    })
    console.log(router.getRoutes());
    
}

dynameAddRouter()